package model;

import java.util.GregorianCalendar;

import model.user.User;


public class Message implements MessageInterface {
	private User sender;
	private User recipient;
	
	private String subject;
	private String contents;
	
	private String date;
	
	public Message(User sender, User recipient, String subject, String contents) {
		this.sender = sender;
		this.recipient = recipient;
		
		this.subject = subject;
		this.contents = contents;
		date = "" + GregorianCalendar.DAY_OF_MONTH + "/" + GregorianCalendar.MONTH + "/" + GregorianCalendar.YEAR;
	}
	
	public User getSender() {
		return sender;
	}
	
	public User getRecipient() {
		return recipient;
	}
	
	public String getSubject() {
		return subject;
	}
	
	public String getContents() {
		return contents;
	}
	
	public String getDate() {
		return date;
	}
}
